package com.igeek.print;

public class ScoreInfo extends Info{

    public ScoreInfo() {
    }

    public ScoreInfo(String stuNo, String courseNo, String courseName, double score) {
        this.stuNo = stuNo;
        this.courseNo = courseNo;
        this.courseName = courseName;
        this.score = score;
    }

    private String stuNo;

    private String courseNo;

    private String courseName;

    private double score;

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public String getCourseNo() {
        return courseNo;
    }

    public void setCourseNo(String courseNo) {
        this.courseNo = courseNo;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public void showInfo() {
        System.out.println("展示成绩信息\n学号："+stuNo+"\t课程："+courseName+"\t分数："+score);
    }
}
